<%--
  Created by IntelliJ IDEA.
  User: silence
  Date: 17-5-26
  Time: 下午9:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<link rel="stylesheet" type="text/css" href="<%=basePath%>resources/css/showUser.css">
<html>
<head>
    <title>Show User Page</title>
</head>
<style>
    table tr td {
        overflow: hidden;
        white-space: nowrap;
       text-overflow: ellipsis;
    }
    a{
        color: white;
    }
    a:visited,a:hover{
        color:white ;
    }
</style>
<body style="background:cadetblue">
<a href="http://localhost:8080/user/login" style="text-decoration: none;color: white;font-size: 30px">
    <img src="../resources/imgs/back.png" style="width: 30px;height: 30px">返回登录界面</a>
<div style="font-size: 40px;color: white;text-align: center;font-weight: bold;padding: 20px">学生信息管理系统</div>
<table border="1px" style="width: 100%;font-size:30px;text-align: center;color: white;border: solid 1px white">
    <tr>
        <th>学生学号</th>
        <th>姓名</th>
        <th>密码</th>
        <th>个人介绍</th>
        <th colspan="2"><a href="add">添加用户</a></th>
    </tr>
    <c:forEach items="${userList}" var="us">
        <tr>
            <td>
                <c:out value="${us.userId}"/>
            </td>
            <td>
                <c:out value="${us.username}"/>
            </td>
            <td>
                <c:out value="${us.password}"/>
            </td>
            <td>
                <c:out value="${us.description}"/>
            </td>
            <td>
                <a href="/user/users/${us.userId}">修改</a>
            </td>
            <td>
                <a href="/user/delete/${us.userId}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
